#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QThread>
#include <QString>
#include <QStringList>
#include "reimage.h"

class MyThread : public QThread
{
    Q_OBJECT
public:
    MyThread(QObject *parent=0);
    ~MyThread();
    
    //设置重命名列表
    void set_rename(QStringList, QStringList);
    //设置图片处理宽高和处理方法
    void set_image(int, int, int, Reimage::Type);
signals:
    //发送当前进度和状态
    void send_status(int, bool);
protected:
    void run();
private:
    QStringList     list, list_save;
    int             save_width, save_height, save_quality;
    Reimage::Type   save_type = Reimage::Type_Null;
};

#endif // MYTHREAD_H
